<?php
namespace createround;


class x5{
	/*
	** 二维数组
	** $params 二维数组
	** 字段列表 必须包含
	** typeid 彩票种类（ssc,k3,Game,kl10f,pk10,keno,xy28）
	** playid 玩法标识
	** opencode 开奖号码
	** tzcode 投注号码
	*/
    function check($symbol){
        $arrs = self::$symbol();
        return $arrs;
    }
	//广东11选5
	function gdsyxw (){
        $arr = array();
        $catime = mktime(0,0,0,date('m'),date('d'),date('Y'));//今天开始时间戳
        $start_time = $catime+3600*9+509;
        $end_time = $catime + 86400+3600*4;

        $day_round = 0;
        $date=date('Ymd');
        $count1 = substr($date,2,strlen($date)-2).'00';
        for ($i = $start_time; $i < $end_time; $i += 60 * 20) {
            if($day_round==42){
                break;
            }
            $day_round += 1;
            $count1 += 1;
            $data = array(
                'lottery_id' => 2,
                'round' => $count1,
                'day_round' => $day_round,
                'start_time' => $i,
                'end_time' => $i + 60 * 20,
                'state' => 1,
                'create_time' => time()
            );
            $arr[] = $data;


        }

        return $arr;
    }


        //湖北11选5
    function hbsyxw (){
        $arr = array();
        $catime = mktime(0,0,0,date('m'),date('d'),date('Y'));//今天开始时间戳
        $start_time = $catime+3600*8+2040;
        $end_time = $catime + 86400+3600*4;

        $day_round = 0;
        $date=date('Ymd');
        $count1 = substr($date,2,strlen($date)-2).'00';
        for ($i = $start_time; $i < $end_time; $i += 60 * 20) {
            if($day_round==40){
                break;
            }
            $day_round += 1;
            $count1 += 1;
            $data = array(
                'lottery_id' => 21,
                'round' => $count1,
                'day_round' => $day_round,
                'start_time' => $i,
                'end_time' => $i + 60 * 20,
                'state' => 1,
                'create_time' => time()
            );
            $arr[] = $data;
        }

        return $arr;
    }


    //江苏11选5
    function jssyxw (){
        $arr = array();
        $catime = mktime(0,0,0,date('m'),date('d'),date('Y'));//今天开始时间戳
        $start_time = $catime+3600*8+1440;
        $end_time = $catime + 86400+3600*4;

        $day_round = 0;
        $date=date('Ymd');
        $count1 = substr($date,2,strlen($date)-2).'00';
        for ($i = $start_time; $i < $end_time; $i += 60 * 20) {
            if($day_round==41){
                break;
            }
            $day_round += 1;
            $count1 += 1;
            $data = array(
                'lottery_id' => 20,
                'round' => $count1,
                'day_round' => $day_round,
                'start_time' => $i,
                'end_time' => $i + 60 * 20,
                'state' => 1,
                'create_time' => time()
            );
            $arr[] = $data;
        }

        return $arr;
    }


    //辽宁11选5
    function lnsyxw (){
        $arr = array();
        $catime = mktime(0,0,0,date('m'),date('d'),date('Y'));//今天开始时间戳
        $start_time = $catime+3600*9-780;
        $end_time = $catime + 86400+3600*4;

        $day_round = 0;
        $date=date('Ymd');
        $count1 = substr($date,2,strlen($date)-2).'00';
        for ($i = $start_time; $i < $end_time; $i += 60 * 20) {
            if($day_round==41){
                break;
            }
            $day_round += 1;
            $count1 += 1;
            $data = array(
                'lottery_id' => 19,
                'round' => $count1,
                'day_round' => $day_round,
                'start_time' => $i,
                'end_time' => $i + 60 * 20,
                'state' => 1,
                'create_time' => time()
            );
            $arr[] = $data;
        }

        return $arr;
    }



    //山东11选5
    function sdsyxw (){
        $arr = array();
        $catime = mktime(0,0,0,date('m'),date('d'),date('Y'));//今天开始时间戳
        $start_time = $catime+3600*9-1080;
        $end_time = $catime + 86400+3600*4;

        $day_round = 0;
        $date=date('Ymd');
        $count1 = substr($date,2,strlen($date)-2).'00';
        for ($i = $start_time; $i < $end_time; $i += 60 * 20) {
            if($day_round==43){
                break;
            }
            $day_round += 1;
            $count1 += 1;
            $data = array(
                'lottery_id' => 19,
                'round' => $count1,
                'day_round' => $day_round,
                'start_time' => $i,
                'end_time' => $i + 60 * 20,
                'state' => 1,
                'create_time' => time()
            );
            $arr[] = $data;
        }

        return $arr;
    }


    // //山西11选5
    function sxsyxw (){
        $arr = array();
        $catime = mktime(0,0,0,date('m'),date('d'),date('Y'));//今天开始时间戳
        $start_time = $catime+3600*8+60;
        $end_time = $catime + 86400+3600*4;

        $day_round = 0;
        $date=date('Ymd');
        $count1 = substr($date,2,strlen($date)-2).'00';
        for ($i = $start_time; $i < $end_time; $i += 60 * 20) {
            if($day_round==46){
                break;
            }
            $day_round += 1;
            $count1 += 1;
            $data = array(
                'lottery_id' => 19,
                'round' => $count1,
                'day_round' => $day_round,
                'start_time' => $i,
                'end_time' => $i + 60 * 20,
                'state' => 1,
                'create_time' => time()
            );
            $arr[] = $data;
        }

        return $arr;
    }
    // //上海11选5
    function shsyxw (){
        $arr = array();
        $catime = mktime(0,0,0,date('m'),date('d'),date('Y'));//今天开始时间戳
        $start_time = $catime+3600*9-90;
        $end_time = $catime + 86400+3600*4;

        $day_round = 0;
        $date=date('Ymd');
        $count1 = substr($date,2,strlen($date)-2).'00';
        for ($i = $start_time; $i < $end_time; $i += 60 * 20) {
            if($day_round==45){
                break;
            }
            $day_round += 1;
            $count1 += 1;
            $data = array(
                'lottery_id' => 19,
                'round' => $count1,
                'day_round' => $day_round,
                'start_time' => $i,
                'end_time' => $i + 60 * 20,
                'state' => 1,
                'create_time' => time()
            );
            $arr[] = $data;
        }

        return $arr;
    }

}
?>